<ion-view title="客户对账">
  <ion-nav-buttons side="left">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="searchkhdz">返回</button>
  </ion-nav-buttons>
  <ion-tabs class="tabs-top tabs-stable tabs-color-positive">
    <ion-tab class="tabs-item" title="发货人">
      <ion-view>
        <ion-content>
          <ion-refresher
                  pulling-text="下拉刷新..."
                  on-refresh="fhrdoRefresh()">
          </ion-refresher>
          <ion-list ng-if="showloading == false">
            <h5 ng-if="fhrdzData==undefined" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ion-item  ng-if="fhrdzData!=undefined" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
              <div class="card list list-inset" >
                <label class="item item-input">
                  <p style="font-size: large">{{khmc}}</p>
                </label>
                <label class="item item-input positive-bg light">
                  <div class="row">
                    <div class="col-33"><p  style="color: white">项目</p></div>
                    <div class="col-33"><p  style="color: white">应收</p></div>
                    <div class="col-33"><p  style="color: white">已收</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>现付</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_xf_ys!=0?(fhrdzData.yf_xf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_xf_sh!=0?(fhrdzData.yf_xf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>月结</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_yj_ys!=0?(fhrdzData.yf_yj_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_yj_sh!=0?(fhrdzData.yf_yj_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>回付</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_hf_ys!=0?(fhrdzData.yf_hf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_hf_sh!=0?(fhrdzData.yf_hf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>代扣</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_ycdk_ys!=0?(fhrdzData.yf_ycdk_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_ycdk_sh!=0?(fhrdzData.yf_ycdk_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>接货费</p></div>
                    <div  class="col-33"><p>{{fhrdzData.thf_ys!=0?(fhrdzData.thf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.thf_sh!=0?(fhrdzData.thf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>送货费</p></div>
                    <div  class="col-33"><p>{{fhrdzData.shf_ys!=0?(fhrdzData.shf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.shf_sh!=0?(fhrdzData.shf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>保费</p></div>
                    <div class="col-33"><p>{{fhrdzData.bf_ys!=0?(fhrdzData.bf_ys+'.00'):''}}</p></div>
                    <div class="col-33"><p>{{fhrdzData.bf_sh!=0?(fhrdzData.bf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>代收款手续费</p></div>
                    <div  class="col-33"><p>{{fhrdzData.dsksxf_ys!=0?(fhrdzData.dsksxf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.dsksxf_sh!=0?(fhrdzData.dsksxf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input positive-bg light">
                  <div class="row">
                    <div class="col-33"><p  style="color: white">项目</p></div>
                    <div class="col-33"><p  style="color: white">应付</p></div>
                    <div class="col-33"><p  style="color: white">已付</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>信息费</p></div>
                    <div  class="col-33"><p>{{fhrdzData.xxf_yf!=0?(fhrdzData.xxf_yf+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.xxf_sf!=0?(fhrdzData.xxf_sf+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>运费垫付</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_df_yf!=0?(fhrdzData.yf_df_yf+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.yf_df_sf!=0?(fhrdzData.yf_df_sf+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>代收货款</p></div>
                    <div  class="col-33"><p>{{fhrdzData.dshk_yf!=0?(fhrdzData.dshk_yf+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{fhrdzData.dshk_sf!=0?(fhrdzData.dshk_sf+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>未结</p></div>
                    <div class="col-33"><p></p></div>
                    <div  class="col-33"><p>{{fhrwjfy!=0?(fhrwjfy+'.00'):''}}</p></div>
                  </div>
                </label>
              </div>
            </ion-item>
          </ion-list>
        </ion-content>
      </ion-view>
    </ion-tab>
    <ion-tab class="tabs-item" title="收货人">
      <ion-view>
        <ion-content>
          <ion-refresher
                  pulling-text="下拉刷新..."
                  on-refresh="shrdoRefresh()">
          </ion-refresher>
          <ion-list ng-if="showloading == false">
            <h5 ng-if="shrdzData==undefined" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ion-item ng-if="shrdzData!=undefined" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
              <div class="card list list-inset" >
                <label class="item item-input">
                  <p style="font-size: large">{{khmc}}</p>
                </label>
                <label class="item item-input positive-bg light">
                  <div class="row">
                    <div class="col-33"><p  style="color: white">项目</p></div>
                    <div class="col-33"><p  style="color: white">应收</p></div>
                    <div class="col-33"><p  style="color: white">已收</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>提付</p></div>
                    <div  class="col-33"><p>{{shrdzData.yf_tf_ys!=0?(shrdzData.yf_tf_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{shrdzData.yf_tf_sh!=0?(shrdzData.yf_tf_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>代收货款</p></div>
                    <div  class="col-33"><p>{{shrdzData.dshk_ys!=0?(shrdzData.dshk_ys+'.00'):''}}</p></div>
                    <div  class="col-33"><p>{{shrdzData.dshk_sh!=0?(shrdzData.dshk_sh+'.00'):''}}</p></div>
                  </div>
                </label>
                <label class="item item-input">
                  <div class="row">
                    <div class="col-33"><p>未结</p></div>
                    <div class="col-33"><p></p></div>
                    <div  class="col-33"><p>{{shrwjfy!=0?(shrwjfy+'.00'):''}}</p></div>
                  </div>
                </label>
              </div>
            </ion-item>
          </ion-list>
        </ion-content>
      </ion-view>
    </ion-tab>
  </ion-tabs>
</ion-view>
